#ifndef HIDEMAIN_H
#define HIDEMAIN_H

#include <QtGui/QWidget>
#include <QtGui/QSystemTrayIcon>
class QMenu;
class QTextBrowser;
class QTcpServer;

class HideMain : public QWidget
{
	Q_OBJECT

public:
	HideMain(QWidget *parent = 0, Qt::WFlags flags = 0);
	~HideMain();

	void startServer();

private slots:
	void doService();
	void about();
	void popMenu(QSystemTrayIcon::ActivationReason reason);

private:
	QMenu *menu;
	QTextBrowser *info;
	QSystemTrayIcon *tray;
	QTcpServer *tcpServer;
	quint16 port;
};

#endif // HIDEMAIN_H
